package components;

public class KMOPR extends LogicalComponent {		//@Darko

    private final int[] stepsDec = {81, 82, 83, 84, 85, 86, 87, 89, 90,
        96, 105, 110, 118, 123, 132, 133, 134, 135, 136, 137, 138, 140,
        142, 144, 146, 148, 150, 152, 154, 154, 154, 154, 156, 156, 156,
        156, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
        158, 158, 158, 158, 161, 162, 163, 172, 179};

    public KMOPR() {
        super(57, 1, false);
        out[0].setIsInt();


    }

    public void func() {
        int i = 0;
        for (; i < in.length; i++) {
            if (in[i].getBoolVal()) {
                break;
            }
        }
        if(i<in.length)out[0].setIntVal(stepsDec[i]);
    }
}
